package testJavaUtils.vo;

public class Person {
	private String name;  
    private int age;  
  
    public Person() {  
  
    }  
  
    public Person(String name, int age) {  
  
        this.name = name;  
        this.age = age;  
    }  
  
/*    @Override  
    public int hashCode() {  
        return this.name.hashCode() + age;  
    }  
  
    @Override  
    public boolean equals(Object obj) {  
        if (!(obj instanceof Person)) {  
            return false;  
        }  
        Person p = (Person) obj;  
        return this.name.equals(p.name) && this.age == p.age;  
    } */ 
  
    @Override    
    public String toString() {  
        return "Person :name=" + name + ", age=" + age;  
    } 

}
